package com.sxj.corejava.code07_面向对象.多态;

/**
 * @author 石小俊
 */
public class Cat extends Pet {
    private String type;

    public Cat(String name, String gender, String type) {
        super(name, gender);
        this.type = type;
    }

    public void show() {
        System.out.println("这是一只宠物猫,姓名:" + super.getName() + ",性别:" + getGender() + ",品种:" + type);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
